package com.delu.controller;


import com.delu.config.VipVO;
import com.delu.data.Result;
import com.delu.em.ResultEnum;
import com.delu.service.TravelOrderService;

import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@Controller
@RequestMapping("/travelOrderVIP")
@RestController
public class TravelOrderVIPController {

    @Autowired
    private TravelOrderService travelOrderService;

    @GetMapping("orderVipList")
    @ApiOperation(value = "会员数量的统计,无需参数")
    public Result orderVipList(){
        List<VipVO> vipVOS = travelOrderService.orderVipList();
        return Result.response(ResultEnum.SUCCESS).setData(vipVOS);
    }


}
